<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><%= htmlWebpackPlugin.options.title%></title>
</head>
<body>
<div id="app"></div>
<div id="postcss"></div>
<!--<img style="width: 100px;height: 100px" src="./static/images/1.png" alt="">-->
<img style="width: 100px;height: 100px"  src="${require('./static/images/1.png').default}" alt="My Image">

<img style="width: 100px;height: 100px" src="<%= require('./static/images/1.png').toString() %>" />
<!-- 或者使用toString()方法 -->
<img style="width: 100px;height: 100px" src="<%= require('./static/images/1.png').toString() %>" alt="My Image" />
<!--<img style="width: 100px;height: 100px"  src="<%= require('./static/images/1.png') %>" />-->
</body>
</html>
